package cn.com.connext.scrm.web.rest.errors;

import com.connext.common.web.rest.errors.AbstractExceptionTranslator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.MessageSource;
import org.springframework.web.bind.annotation.ControllerAdvice;

/**
 * Controller advice to translate the server side exceptions to client-friendly json structures.
 */
@ControllerAdvice
public class ExceptionTranslator extends AbstractExceptionTranslator {

    private final Logger log = LoggerFactory.getLogger(ExceptionTranslator.class);


    protected ExceptionTranslator(MessageSource messageSource) {
        super(messageSource);
    }
}
